-- GENERATED SPELL FOR [Prince Skaldrenox] --


function spell0_15203(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(25049,pUnit)
pUnit:RegisterEvent('Sorts_15203', 6285, 1)
end

function spell1_15203(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15203', 556, 1)
end

function spell2_15203(pUnit, Event) --@Elemental Spawn-in,Self--
pUnit:FullCastSpellOnTarget(25035,pUnit)
pUnit:RegisterEvent('Sorts_15203', 569, 1)
end

function spell3_15203(pUnit, Event) --@Mark of Flames,n/a--
pUnit:FullCastSpellOnTarget(25050,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15203', 611, 1)
end

function Sorts_15203(pUnit, Event)
local choix_sorts_15203 = math.random(0, 3)
if choix_sorts_15203 == 0 then
pUnit:RegisterEvent('spell0_15203', 1, 1)
end
if choix_sorts_15203 == 1 then
pUnit:RegisterEvent('spell1_15203', 1, 1)
end
if choix_sorts_15203 == 2 then
pUnit:RegisterEvent('spell2_15203', 1, 1)
end
if choix_sorts_15203 == 3 then
pUnit:RegisterEvent('spell3_15203', 1, 1)
end
end

function mob15203_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15203', math.random(1500, 3000), 1)
end

function mob15203_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15203_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15203_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15203, 1, 'mob15203_Action')
RegisterUnitEvent(15203, 2, 'mob15203_Leave')
RegisterUnitEvent(15203, 3, 'mob15203_Kill')
RegisterUnitEvent(15203, 4, 'mob15203_Die')
